import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('../views/HomeView.vue')
    },
    {
      path: '/goodList',
      name: 'goodList',
      component: () => import('../views/goodList.vue')
    },
    {
      path: '/orderSorting',
      name: 'orderSorting',
      component: () => import('../views/orderSorting.vue')
    },
    {
      path: '/weightedGoods',
      name: 'weightedGoods',
      component: () => import('../views/weightedGoods.vue')
    },
    {
      path: '/setting',
      name: 'setting',
      component: () => import('../views/setting/settingPage.vue')
    },
    {
      path: '/orderDifferences',
      name: 'orderDifferences',
      component: () => import('../views/orderDifferences.vue')
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/loginPage.vue')
    }
  ]
})

export default router
